﻿using System.ComponentModel;

namespace QMERP.Domain.Enums
{
    public enum RoleMasterEnum
    {
        [Description("用户")]
        User = 0,
        [Description("组织机构")]
        Organization = 1,
    }
    /// <summary>
    /// 权限通道
    /// </summary>
    public enum AccessEnum
    {
        [Description("应用")]
        App,
        [Description("资源")]
        Resource,
    }
    public enum AppTypeEnum
    {
        [Description("目录")]
        Catalog,
        [Description("应用")]
        App,
        [Description("资源")]
        Resource,
    }
    /// <summary>
    /// 权限对象
    /// </summary>
    public enum MasterEnum
    {
        [Description("角色")]
        Role,
        [Description("用户")]
        User,
        [Description("组织机构")]
        Organization
    }
    /// <summary>
    /// 组织机构类型
    /// </summary>
    public enum OrganizationTypeEnum
    {
        [Description("机构")]
        Organ,
        [Description("部门")]
        Department,
    }
    /// <summary>
    /// 入库单状态
    /// </summary>
    public enum EnterStockOrderStatusEnum
    {
        [Description("待审核")]
        Pending,
        [Description("已审核")]
        Checked,
        [Description("取消")]
        Canceled,
    }
    /// <summary>
    /// 出库单状态
    /// </summary>
    public enum LeaveStockOrderStatusEnum
    {
        [Description("待审核")]
        Pending,
        [Description("已审核")]
        Checked,
        [Description("取消")]
        Canceled,
    }
    /// <summary>
    /// 入库业务类型
    /// </summary>
    public enum EnterStockBusinessTypeEnum
    {
        [Description("采购入库")]
        PurchaseEnterStock,
        [Description("订单入库")]
        OrderEnterStock,
        [Description("退货入库")]
        GoodsReturnEnterStock,
        [Description("盘点入库")]
        InventoryEnterStock,
        [Description("返工入库")]
        ReworkEnterStock,
        [Description("转仓入库")]
        TransferEnterStock,
        [Description("加工入库")]
        ProcessEnterStock,
    }
    /// <summary>
    /// 出库业务类型
    /// </summary>
    public enum LeaveStockBusinessTypeEnum
    {
        [Description("销售出库")]
        SalesLeaveStock,
        [Description("订单出库")]
        OrderLeaveStock,
        [Description("不良出库")]
        BadLeaveStock,
        [Description("盘点出库")]
        InventoryLeaveStock,
        [Description("返工出库")]
        ReworkLeaveStock,
        [Description("转仓出库")]
        TransferLeaveStock,
        [Description("加工出库")]
        ProcessLeaveStock,
    }
    /// <summary>
    /// 订单类型
    /// </summary>
    public enum SerialNumberTypeEnum
    {
        [Description("CNCGD")]
        PurchaseOrder ,
        [Description("CNDBD")]
        TransferOrder ,
        [Description("CNJZZHD")]
        TransferLensOrder,
        [Description("CNPDD")]
        InventoryOrder,
        [Description("CNRKD")]
        EnterStockOrder,
        [Description("CNCKD")]
        LeaveStockOrder,
        [Description("CNHY")]
        Contract,
        [Description("CNSJD")]
        RetailOrder,
        [Description("CNPLD")]
        BulkOrder,
        [Description("CNJMD")]
        ConsignmentOrder,
        [Description("CNSJTHD")]
        RetailReturnOrder,
        [Description("CNPLTHD")]
        BulkReturnOrder,
        [Description("CNJMTHD")]
        ConsignmentReturnOrder,
    }
    /// <summary>
    /// 调拨单状态
    /// </summary>
    public enum  TransferOrderStatusEnum
    {
        [Description("待审核")]
        Pending,
        [Description("待收货")]
        Receive,
        [Description("部分收货")]
        PartialReceived,
        [Description("全部收货")]
        AllReceived,
        [Description("已完成")]
        Finished,
        [Description("取消")]
        Canceled,
    }
    /// <summary>
    /// 采购订单状态
    /// </summary>
    public enum PurchaseOrderStatusEnum
    {
        [Description("待审核")]
        Pending,
        [Description("待收货")]
        Receive,
        [Description("部分收货")]
        PartialReceived,
        [Description("全部收货")]
        AllReceived,
        [Description("超出收货")]
        OverReceived,
        [Description("已完成")]
        Finished,
        [Description("取消")]
        Canceled,
    }
    /// <summary>
    /// 镜种转换单状态
    /// </summary>
    public enum TransferLensOrderStatusEnum
    {
        [Description("待审核")]
        Pending,
        [Description("已审核")]
        Checked,
        [Description("已完成")]
        Finished,
        [Description("取消")]
        Canceled,
    }
    /// <summary>
    /// 库存盘点单订单状态
    /// </summary>
    public enum InventoryOrderStatusEnum
    {
        [Description("待审核")]
        Pending,
        [Description("已审核")]
        Checked,
        [Description("已完成")]
        Finished,
        [Description("取消")]
        Canceled,
    }
    /// <summary>
    /// 合约状态
    /// </summary>
    public enum ContractStatusEnum
    {
        [Description("待审核")]
        Pending,
        [Description("已审核")]
        Checked,
        [Description("已结束")]
        Ended,
        [Description("取消")]
        Canceled,
    }
    /// <summary>
    /// XYTable类型
    /// </summary>
    public enum XYTableTypeEnum
    {
        [Description("库存")]
        Stock,
        [Description("基本库存")]
        BasicStock,
        [Description("出入库记录")]
        ActionLog,
        [Description("盘盈片数")]
        InventoryIn,
        [Description("盘亏片数")]
        InventoryOut,
        [Description("采购入库")]
        InOutSummary_PurchaseIn,
        [Description("订单入库")]
        InOutSummary_OrderIn,
        [Description("退货入库")]
        InOutSummary_GoodsReturn,
        [Description("盘点入库")]
        InOutSummary_InventoryIn,
        [Description("返工入库")]
        InOutSummary_ReworkIn,
        [Description("转仓入库")]
        InOutSummary_TransferIn,
        [Description("销售出库")]
        InOutSummary_SaleOut,
        [Description("订单出库")]
        InOutSummary_OrderOut,
        [Description("不良出库")]
        InOutSummary_BadOut,
        [Description("盘点出库")]
        InOutSummary_InventoryOut,
        [Description("返工出库")]
        InOutSummary_ReworkOut,
        [Description("转仓出库")]
        InOutSummary_TransferOut,
        [Description("期初库存")]
        InOutSummary_Opening,
        [Description("期末库存")]
        InOutSummary_Closing
    }
    /// <summary>
    /// 库存操作类型
    /// </summary>
    public enum StockActionTypeEnum
    {
        [Description("入库")]
        EnterStock,
        [Description("出库")]
        LeaveStock,
    }
    /// <summary>
    /// 入库业务单类型
    /// </summary>
    public enum EnterStockBusinessOrderTypeEnum
    {
        [Description("采购单")]
        PurchaseOrder,
        [Description("调拨单")]
        TransferOrder,
        [Description("镜种转换单")]
        TransferLensOrder,
        [Description("库存盘点单")]
        InventoryOrder
    }
    /// <summary>
    /// 出库业务单类型
    /// </summary>
    public enum LeaveStockBusinessOrderTypeEnum
    {
        [Description("散镜订单")]
        RetailOrder,
        [Description("批量订单")]
        BulkOrder,
        [Description("调拨单")]
        TransferOrder,
        [Description("镜种转换单")]
        TransferLensOrder,
        [Description("库存盘点单")]
        InventoryOrder
    }
    /// <summary>
    /// 散镜订单状态
    /// </summary>
    public enum RetailOrderStatusEnum
    {
        [Description("待审核")]
        Pending,
        [Description("待发货")]
        Delivery,
        [Description("已发货")]
        Delivered,
        [Description("已完成")]
        Finished,
        [Description("取消")]
        Canceled,
    }
    /// <summary>
    /// 批量订单状态
    /// </summary>
    public enum BulkOrderStatusEnum
    {
        [Description("待审核")]
        Pending,
        [Description("待发货")]
        Delivery,
        [Description("部分发货")]
        PartialDelivered,
        [Description("全部发货")]
        AllDelivered,
        [Description("已完成")]
        Finished,
        [Description("取消")]
        Canceled,
    }
    /// <summary>
    /// 销售工序类型
    /// </summary>
    public enum SalesProcessesTypeEnum
    {
        [Description("焗色")]
        Coating,
        [Description("茶色")]
        TintingColor,
        [Description("水银")]
        Mirror,
        [Description("染色")]
        TintingCode,
        [Description("染色名称")]
        TintingName,
        //[Description("UV")]
        //UV,
        [Description("镜架")]
        Frame,
        //[Description("加硬")]
        //Hard,
        //[Description("抛光")]
        //PaoGuang,
        [Description("彩边")]
        CaiBian,
        [Description("车边")]
        CheBian,
        [Description("开坑")]
        KaiKeng,
        [Description("批花")]
        PiHua,
        //[Description("刀边")]
        //KnifeEdge,
        //[Description("面弯")]
        //Base,
        [Description("钻孔")]
        ZuanKong,
        //[Description("其他工序")]
        //OtherProcess,
        //[Description("额外的工序")]
        //ExtraProcess
    }
    /// <summary>
    /// 散单导入格式
    /// </summary>
    public enum RetailOrderImportFormatEnum
    {
        AS系列,
        HKEGG,
        MDGlass,
    }
    public enum EyeTypeEnum
    { 
        R,
        L
    }
    /// <summary>
    /// 附件类型
    /// </summary>
    public enum AttachmentOwnerTypeEnum
    {
        [Description("批量订单")]
        BulkOrder,
    }
    /// <summary>
    /// 批量订单类型
    /// </summary>
    public enum BulkOrderTypeEnum
    {
        [Description("成品")]
        Product,
        [Description("单光毛料")]
        MonofocalMaterial,
        [Description("双光毛料")]
        BifocalMaterial,
    }
}
